#ifndef PRBTHREAD_H
#define PRBTHREAD_H

#include <QObject>
#include <QThread>
#include <QFileInfo>

class PrbThread : public QThread
{
    Q_OBJECT
public:
    explicit PrbThread(QObject *parent = nullptr);
    bool copyFile(const QString &fromDir, const QString &toDir, bool coverFileIfExist);

    void recvPath(QString fStr,QString tStr);

protected:
    void run() override;
signals:
    void sendFileInfo(QFileInfo fInfo);
    void sendFileInfoList(QFileInfoList fiList);
    void sendStatus(bool status);

private:
    QString m_fromStr;
    QString m_toStr;
};

#endif // PRBTHREAD_H
